sync w/ head.
void domain_relinquish_memory(struct domain *d)
{
- audit_domain(d);
-
+ struct exec_domain *ed;
+
/* Ensure that noone is running over the dead domain's page tables. */
synchronise_pagetables(~0UL);
unsigned int cmd, done = 0;
unsigned long prev_spfn = 0;
l1_pgentry_t *prev_spl1e = 0;
- struct domain *d = current;
+ struct exec_domain *ed = current;
+ struct domain *d = ed->domain;
u32 type_info;
+ domid_t domid;
perfc_incrc(calls_to_mmu_update);
perfc_addc(num_page_updates, count);
for ( ; ; )
{
if ( hypercall_preempt_check() )
- hypercall_create_continuation(
- __HYPERVISOR_set_trap_table, 1, traps);
+ {
- return __HYPERVISOR_set_trap_table;
+ UNLOCK_BIGLOCK(current->domain);
+ return hypercall_create_continuation(
+ __HYPERVISOR_set_trap_table, 1, traps);
+ }
if ( copy_from_user(&cur, traps, sizeof(cur)) ) return -EFAULT;